<!DOCTYPE html>
<html lang="zh">
<#
 include "head.html";
 #>
<body>
<div class="lyear-layout-web">
  <div class="lyear-layout-container">
    <!--左侧导航-->
    <#
     include "lefter.html";
     #>
    <!--End 左侧导航-->
    <!--头部信息-->
    <#
     include "header.html";
     #>
    <!--End 头部信息-->
    <!--页面主要内容-->
    <main class="lyear-layout-content">
      
      <div class="container-fluid">
        
        <div class="row">
          <div class="col-lg-12">
            <div class="card">
            
              <div class="card-toolbar clearfix">
                <form class="search-bar" method="get" action="" role="form">
                  <div class="input-group">
                    <div class="input-group-btn">
                      <input type="hidden" name="search_field" id="search-field" value="email">
                      <button class="btn btn-default dropdown-toggle" id="search-btn" data-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
                     	 邮箱<span class="caret"></span>
                      </button>
                      <ul class="dropdown-menu">
                        <li> <a tabindex="-1" href="javascript:void(0)" data-field="email">邮箱</a> </li>
                      </ul>
                    </div>
                    <input type="text" class="form-control" value="" name="keyword" placeholder="请输入">
                  </div>
                </form>
              </div>
            
              <div class="card-body">
                
                <div class="table-responsive">
                  <table class="table table-bordered">
                    <thead>
                      <tr>
                        <th>编号</th>
                        <th>邮箱</th>
                        <th>停用</th>
                        <th>HTTP限制数</th>
                        <th>TCP限制数</th>
                        <th>操作(<a href="users_add"><i class="mdi mdi-plus" title="新增"></i></a>)</th>
                      </tr>
                    </thead>
                    <tbody>
                    <#
                     for($user : $page.list)
                     #>
                      <tr>
                        <td>${user.id}</td>
                        <td>${user.email}</td>
                        <#
                         if($user.inactive == "F")
                         #>
                        <td>否</td>
                        <#
                         else
                         #>
                        <td>是</td>
                        <#
                         fi;
                         #>
                        <td>${user.subCountLimit}</td>
                        <td>${user.portCountLimit}</td>
                        <td>
                          <div class="btn-group">
                            <a class="btn btn-xs btn-default" href="users_edit?id=${user.id}" title="编辑" data-toggle="tooltip"><i class="mdi mdi-pencil"></i></a>
                          </div>
                        </td>
                      </tr>
                    <#
                     rof;
                     #>
                    </tbody>
                  </table>
                </div>
                <#
                 if($page.paged == "T")
                 #>
                <nav>
                  <ul class="pager">
                    <#
                     if($page.prev > 0)
                     #>
                    <li><a href="users?currentPage=${page.prev}">上一页</a></li>
                    <#
                     else
                     #>
                    <li class="disabled"><a href="">上一页</a></li>
                    <#
                     fi;
                     if($page.next > 0)
                     #>
                    <li><a href="users?currentPage=${page.next}">下一页</a></li>
                    <#
                     else
                     #>
                    <li class="disabled"><a href="">下一页</a></li>
                    <#
                      fi;
                     #>
                  </ul>
                </nav>
                <#
                 fi;
                 #>
              </div>
            </div>
          </div>
          
        </div>
        
      </div>
      
    </main>
    <!--End 页面主要内容-->
  </div>
</div>
<#
 include "js.html";
 #>
<script src="js/bootstrap-notify.min.js"></script>
<script type="text/javascript" src="js/lightyear.js"></script>
</body>
</html>